package com.liser.southernstar.utils;

/**
 * 适用于匿名接口或lambda传值
 */
public class CallData<T> {

    private T value = null;

    public CallData(){}

    public CallData(T $default){
        this.value = $default;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public boolean isNotNull(){
        return value != null;
    }
}
